import axios from "@/common/axios";
import { API_URL } from "@/common/constants";

export const queryCompScoreList = async (json) => {
  let { data } = await axios.post(API_URL + "rCompScoreApi/queryCompScoreList", json);
  return data;
};



export const updateCompScore = async (json) => {
  let { data } = await axios.post(API_URL + "rCompScoreApi/updateCompScore", json);
  return data;
};


export const addCompScore = async (json) => {
  let { data } = await axios.post(API_URL + "rCompScoreApi/addCompScore", json);
  return data;
};



export const delCompScore = async (json) => {
  let { data } = await axios.post(API_URL + "rCompScoreApi/delCompScore", json);
  return data;
};


export const importExcel = async (formData) => {
  let { data } = await axios.post(API_URL + "rCompScoreApi/importExcel", formData, {
    headers: {
      'Content-Type': 'multipart/form-data;charset=utf-8'
    }
  });
  return data;

}